import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询在建工地工程项目全部
export const collectBuildingProjectList = data => {
    return $get('/collect/collectBuildingProject/list', data)
}

// 查询在建工地工程项目列表
export const collectBuildingProjectPage = data => {
    return $get('/collect/collectBuildingProject/page', data)
}

// 新增在建工地工程项目
export const collectBuildingProjectAdd = data => {
    return $post('/collect/collectBuildingProject/add', data)
}

// 查询在建工地工程项目详情
export const collectBuildingProjectDetail = id => {
    return $get('/collect/collectBuildingProject/detail/'+ id)
}

// 更新在建工地工程项目
export const collectBuildingProjectUpdate = data => {
    return $post('/collect/collectBuildingProject/update', data)
}

// 删除在建工地工程项目
export const collectBuildingProjectDelete = id => {
    return $post('/collect/collectBuildingProject/delete/'+ id)
}

// 导出在建工地工程项目
export const collectBuildingProjectExport = (data,fileName) => {
    return $download('/collect/collectBuildingProject/export',data, fileName)
}
